package com.cino.pet.domain;

import com.cino.basic.base.domain.BaseDomain;
import com.cino.org.domain.Department;
import com.cino.org.domain.Shop;
import com.cino.users.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 实体类：
 */
@Data
public class Pet extends BaseDomain{

    private String name;
    private BigDecimal costprice;
    private BigDecimal saleprice;
    /**
     * 类型id
     */
    private Long typeId;
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Integer state;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaleTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaleTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime= new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    private Long searchMasterMsgId;

    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private User user;

    private Shop shop;

    private PetType type;
    //1.列表查询的时候将详情信息查询出来  2.在添加和修改的时候接收前端传递的数据
    private PetDetail petDetail;

}
